import request from '@/utils/request'

// 查询人才认定资讯列表
export function listRecognition(query) {
  return request({
    url: '/apm/recognition/list',
    method: 'get',
    params: query
  })
}

// 查询人才认定资讯详细
export function getRecognition(recognitionId) {
  return request({
    url: '/apm/recognition/' + recognitionId,
    method: 'get'
  })
}

// 新增人才认定资讯
export function addRecognition(data) {
  return request({
    url: '/apm/recognition',
    method: 'post',
    data: data
  })
}

// 修改人才认定资讯
export function updateRecognition(data) {
  return request({
    url: '/apm/recognition',
    method: 'put',
    data: data
  })
}

// 删除人才认定资讯
export function delRecognition(recognitionId) {
  return request({
    url: '/apm/recognition/' + recognitionId,
    method: 'delete'
  })
}
